package org.brownflat.fxdate.data;

import org.brownflat.dbinit.upgrade.Upgrade;
import org.springframework.stereotype.Component;

/**
 * <p>&copy Rupert Jones 2011,2012</p>
 *
 * @author rup
 */
@Component
public class Upgrade0004CreateUserSeq implements Upgrade {

    private static final int VERSION = 4;

    @Override
    public int getSequence() {
        return VERSION;
    }

    @Override
    public String getSql() {
        StringBuffer sql = new StringBuffer();
        sql.append("CREATE SEQUENCE FXDATE_USER_SEQ START WITH 1 INCREMENT BY 1 NOCACHE NOCYCLE;");
        return sql.toString();
    }

    @Override
    public String getName() {
        return "Create user sequence";
    }
}
